const HEIMA_TOKEN = 'copy_token'

export function getToken () {
  return JSON.parse(window.localStorage.getItem(HEIMA_TOKEN))
}

export function setToken (token) {
  window.localStorage.setItem(HEIMA_TOKEN, JSON.stringify(token))
}

export function removeToken () {
  window.localStorage.removeItem(HEIMA_TOKEN)
}
